package com.li.day.day17;

public class LanHan {
    private LanHan() {}
    private static LanHan inin=null;
    public static LanHan getLanHan(){
        if (inin==null){
            inin=new LanHan();
        }

        return inin;
    }
}
class test{
    public static void main(String[] args) {
        LanHan lanHan = LanHan.getLanHan();
        LanHan lanHan2 = LanHan.getLanHan();
        System.out.println(lanHan2==lanHan);
    }
}
